﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="DanhSach.aspx.cs" Inherits="HelloASPNET.Test.DanhSach" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" DataKeyNames="Username" OnRowDeleting="GridView1_RowDeleting">
        <Columns>
            <asp:ButtonField ButtonType="Link" Text="Delete" CommandName="delete"/>
            <asp:TemplateField HeaderText="So luong">
                <ItemTemplate>
                    <asp:TextBox ID="txtSoLuong" runat="server" Text="0" />
                    <asp:Button ID="btnXoa" runat="server" OnClientClick="return confirm('Bạn có chắc muốn xoa dong nay? ');" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Username" HeaderText="ten dn"/>
        </Columns>
    </asp:GridView>

    <br />
    <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />

</asp:Content>
